import request from '@/utils/request'

// 赛事列列表
export function competitionLists(params?: Record<string, any>) {
    return request.get({ url: '/competition.list/lists', params })
}

// 赛事列详情
export function competitionDetail(params: Record<string, any>) {
    return request.get({ url: '/competition.list/detail', params })
}

// 赛事列新增
export function competitionAdd(params: Record<string, any>) {
    return request.post({ url: '/competition.list/add', params })
}

// 赛事列编辑
export function competitionEdit(params: Record<string, any>) {
    return request.post({ url: '/competition.list/edit', params })
}

// 赛事列删除
export function competitionDelete(params: Record<string, any>) {
    return request.post({ url: '/competition.list/del', params })
}

// 赛事申请删除
export function applyExamine(params: Record<string, any>) {
    return request.post({ url: '/competition.list/examine', params })
}

// 赛事列详情
export function competitionSession(params: Record<string, any>) {
    return request.get({ url: '/competition.list/session', params })
}
export function competitionSessionUp(params: Record<string, any>) {
    return request.post({ url: '/competition.list/session/up', params })
}
export function competitionSessionDown(params: Record<string, any>) {
    return request.post({ url: '/competition.list/session/down', params })
}
// 赛事列详情
export function competitionBiSai(params: Record<string, any>) {
    return request.get({ url: '/competition.list/bisai', params })
}

// 赛事列详情
export function competitionSiteLists(params: Record<string, any>) {
    return request.get({ url: '/competition.site/lists', params })
}

// 赛事列新增
export function competitionSiteAdd(params: Record<string, any>) {
    return request.post({ url: '/competition.site/add', params })
}

// 赛事列编辑
export function competitionSiteEdit(params: Record<string, any>) {
    return request.post({ url: '/competition.site/edit', params })
}

// 赛事列删除
export function competitionSiteDelete(params: Record<string, any>) {
    return request.post({ url: '/competition.site/del', params })
}

// 赛事列详情
export function competitionSiteDetail(params: Record<string, any>) {
    return request.get({ url: '/competition.site/detail', params })
}

export function competionPlayDetail(params: Record<string, any>) {
    return request.get({ url: '/competition.list/play/detail', params })
}

// 赛事列编辑
export function competitionPlayEdit(params: Record<string, any>) {
    return request.post({ url: '/competition.list/play/edit', params })
}

// 赛事列新增
export function competitionPlayAdd(params: Record<string, any>) {
    return request.post({ url: '/competition.list/play/add', params })
}

export function competionPlay(params: Record<string, any>) {
    return request.get({ url: '/competition.list/play', params })
}

// 赛事列新增
export function competitionPlayScoreEdit(params: Record<string, any>) {
    return request.post({ url: '/competition.list/play/score/edit', params })
}

export function competitionScheduleLists(params?: Record<string, any>) {
    return request.get({ url: '/competition/schedule/lists', params })
}

export function competionScheduleDetail(params: Record<string, any>) {
    return request.get({ url: '/competition/schedule/detail', params })
}
// 赛事列新增
export function competitionScheduleEdit(params: Record<string, any>) {
    return request.post({ url: '/competition/schedule/edit', params })
}

export function competitionScoreLists(params?: Record<string, any>) {
    return request.get({ url: '/competition/score/lists', params })
}

export function competionRuleDetail(params: Record<string, any>) {
    return request.get({ url: '/competition/rule/detail', params })
}
// 赛事列新增
export function competitionRuleAdd(params: Record<string, any>) {
    return request.post({ url: '/competition/rule/add', params })
}
// 赛事列新增
export function competitionRuleEdit(params: Record<string, any>) {
    return request.post({ url: '/competition/rule/edit', params })
}
